<template>
  <div class="box">
    <div class="box-item box-item-logo">
      <img src="../assets/logo.png" alt="logo" />
    </div>
    <div class="box-item box-item-input">
      <el-input placeholder="请输入搜索内容" style="width: 90%; height: 40px"> </el-input>
    </div>
    <div class="box-item box-item-login">
      <div class="msg">
        <el-icon :style="{ fontSize: '24px' }"> <Bell /> </el-icon>消息
      </div>
      <div class="user">
        <img src="../assets/logo.png" style="border-radius:50%" alt="logo" />
        <div class="user-login">注册/登录</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="Header">
import { Bell } from "@element-plus/icons-vue";
</script>

<style scoped lang="less">
.box {
  width: 100%;
  height: 80px;
  margin: 0 auto;
  padding: 20px 100px;
  box-sizing: border-box;
  display: flex;
  background-color: #fff;
  justify-content: space-between;
  .box-item {
    flex: 1;
  }
  .box-item-logo {
    display: flex;
  }
  .box-item-input {
    width: 60%;
    display: flex;
    align-items: center;
  }
  .box-item-login {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .msg {
      width: 45%;
      display: flex;
      justify-content: flex-end;
    }
    .user {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: flex-end;
      .user-login {
        width: auto;
        height: 100%;
        display: flex;
        align-items: center;
        margin-left: 40px;
        font-size: 18px;
      }
    }
  }
}
</style>
